/**
 * @description 基础样式库
 * @author zhangli
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC',
    'Helvetica Neue', STHeiti, 'Microsoft Yahei', Tahoma, Simsun, sans-serif,
    Helvetica !important;
  font-size: 14px !important;
  color: @u-main-color;
  overflow-y: auto;
}

div {
  outline: 0 !important;
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  position: relative;
}

input:focus,
textarea:focus,
select:focus {
  outline-offset: -1px;
  outline: -webkit-focus-ring-color auto 5px;
}

ul,
li {
  list-style: none;
}

button {
  border: 0;
  background-color: transparent;
  outline: none;
}

/* 界面对齐 */
.u-tx-c {
  text-align: center;
}

.u-tx-r {
  text-align: right;
}

.u-tx-l {
  text-align: left;
}

/* 鼠标形状*/
.c-pointer {
  cursor: pointer;
}

/* 元素边框 */
.u-bd-1px {
  position: relative;
  border: 1px solid @u-border-color;
}

.u-bd-t {
  position: relative;
  border-top: 1px solid @u-border-color;
}

.u-bd-b {
  position: relative;
  border-bottom: 1px solid @u-border-color;
}

.u-bd-l {
  position: relative;
  border-left: 1px solid @u-border-color;
}

.u-bd-r {
  position: relative;
  border-right: 1px solid @u-border-color;
}

/* 字体大小 */
.u-font-12 {
  font-size: 12px;
}
.u-font-16 {
  font-size: 16px;
}
.u-font-18 {
  font-size: 18px;
}
.u-font-20 {
  font-size: 20px;
}
.u-font-24 {
  font-size: 24px;
}
.u-font-42 {
  font-size: 42px;
}

/* 元素滚动 */
.u-scroll-y {
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.u-scroll-x {
  overflow-y: hidden;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
}

/* 元素隐藏 */
.u-hide {
  display: none !important;
}

.u-of {
  overflow: hidden;
}

.u-auto {
  overflow: auto;
}

/* 元素加粗 */
.u-bold {
  font-weight: bold;
}

.u-bold-400 {
  font-weight: 400;
}

.u-bold-800 {
  font-weight: 800;
}

/* 元素阴影 */
.u-shadow {
  box-shadow: 0 0 4px #eee;
}

.u-shadow-rb {
  box-shadow: 2px 2px 4px #eee;
}

.u-shadow-b {
  box-shadow: 0px 2px 4px #eee;
}

.u-shadow-r {
  box-shadow: 2px 0px 4px #eee;
}

/* 行高 */
.u-line-22 {
  line-height: 22px;
}

.u-line-24 {
  line-height: 24px;
}

.u-line-28 {
  line-height: 28px;
}

/** 文字间距 **/
.u-letter-2 {
  letter-spacing: 2px;
}

.u-letter-4 {
  letter-spacing: 4px;
}

.u-letter-6 {
  letter-spacing: 6px;
}

/**
 * 元素只显示一行，两行，三行多余的隐藏
 */
.u-te {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.u-te2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.u-te3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
